<?php
namespace app\admin\controller;
use think\Controller;
use think\Db;
class Storemanage extends Controller
{
 
    public function Shops_Audit()
    {  
        $res=Db::name("registry")->select();
        $this->assign("data",$res);
        return $this->fetch('Shops_Audit');
        
    }
    public  function updatapwd(){
        $id=$_POST['id'];
        $res=Db::name('registry')->where('login_id','=',$id)
        ->update(['user_pwd'=>'123456']);
        if($res){
            $raw_success = array( 'msg' => 'ok');
            return json($raw_success);
        }
    }
}